home *** CD-ROM | disk | FTP | other *** search
/ Aminet 7 / Aminet 7 - August 1995.iso / Aminet / docs / misc / ConcNews.lha / news / amiga.compilers / comp.sys.amiga.programmer_5221_000019.msg < prev    next >
Encoding:
Text File  |  1994-11-27  |  2.1 KB  |  50 lines

  1. Newsgroups: comp.sys.amiga.programmer
  2. Path: dd.chalmers.se!news.chalmers.se!sunic!EU.net!howland.reston.ans.net!cs.utexas.edu!swrinde!emory!news-feed-1.peachnet.edu!concert!sas!mozart.unx.sas.com!walker
  3. From: walker@twix.unx.sas.com (Doug Walker)
  4. Subject: Re: SAS Keywords (__saveds etc)
  5. Originator: walker@twix.unx.sas.com
  6. Sender: news@unx.sas.com (Noter of Newsworthy Events)
  7. Message-ID: <CKI0po.EAF@unx.sas.com>
  8. Date: Mon, 31 Jan 1994 14:39:23 GMT
  9. References: <inf01.759746947@apollo23> <CKCG1B.Lzq@unx.sas.com> <2iiptt$soe@ugle.unit.no> <CKI0Ip.DrF@unx.sas.com>
  10. Nntp-Posting-Host: twix.unx.sas.com
  11. Organization: SAS Institute Inc.
  12. Lines: 37
  13.  
  14.  
  15. In article <CKI0Ip.DrF@unx.sas.com>, walker@twix.unx.sas.com (Doug Walker) writes:
  16. |> 
  17. |> In article <2iiptt$soe@ugle.unit.no>, shansen@idt.unit.no (Staale L. Hansen) writes:
  18. |> |> In article <CKCG1B.Lzq@unx.sas.com>, jamie@cdevil.unx.sas.com (James Cooper) writes:
  19. |> |> [...]
  20. |> |> |> >c) __register
  21. |> |> |> >   I think this is to force a parameter into a register for library
  22. |> |> |> >   calls.
  23. |> |> |> 
  24. |> |> |> *Must* be used with __asm (mentioed above); it specifies the register a
  25. |> |> |> parameter will arrive in when the function in called.
  26. |> |> |> 
  27. |> |> |>         int __asm foo(register __a3 char *bar);
  28. |> |> |> 
  29. |> |> |> This says that function "foo" will receive its only parameter in register
  30. |> |> |> A3, rather than the default for pointers of A0.
  31. |> |> 
  32. |> |> But how do you specify which register the return value will be in? As
  33. |> |> far as I can see there is NO way to do this, you get register D0
  34. |> |> whether you like it or not.
  35. |> 
  36. |> The return value is always in D0 unless the function is returning
  37. |> a long, in which case it's in D0/D1.
  38.  
  39. AACK!  AACK!  NO, DON'T SEND ME EMAIL!  I MEANT "double", NOT "long"!
  40.  
  41. double double double double double long (slap!  Ow!) double double...
  42.  
  43. -- 
  44.   *****                    / walker@unx.sas.com
  45.  *|_o_o|\\     Doug Walker<  BIX, Portal: djwalker
  46.  *|. o.| ||                \ CompuServe: 71165,2274
  47.   | o  |//     
  48.   ====== 
  49. Any opinions expressed are mine, not those of SAS Institute, Inc.
  50.